package lineartable.linkedlist.doublylinkedlist;

public class DoublyLinkedNode {
    private char data;
    private DoublyLinkedNode prior;
    private DoublyLinkedNode next;

    public DoublyLinkedNode() {
    }

    public DoublyLinkedNode(char data, DoublyLinkedNode prior, DoublyLinkedNode next) {
        this.data = data;
        this.prior = prior;
        this.next = next;
    }

    public char getData() {
        return data;
    }

    public void setData(char data) {
        this.data = data;
    }

    public DoublyLinkedNode getPrior() {
        return prior;
    }

    public void setPrior(DoublyLinkedNode prior) {
        this.prior = prior;
    }

    public DoublyLinkedNode getNext() {
        return next;
    }

    public void setNext(DoublyLinkedNode next) {
        this.next = next;
    }
}
